package com.cxria.pattern.interpreter

class SubExpression extends SymbolExpression {

    SubExpression(Expression left, Expression right) {
        super(left, right)
    }

    @Override
    int interpreter(Map<String, Integer> var) {
        left.interpreter(var) - right.interpreter(var)
    }

}
